﻿using Ewell.Interface.Common.Model.Constant;
using Ewell.Interface.Common.Model.GateWay.Dto.Basic;
using Ewell.Interface.Common.Model.GateWay.Dto.Oauth;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ewell.Interface.Common.Model.GateWay.GateWayUriInfo
{
    public class PaymentDubboService : GateWayUri
    {
        public override string url => "dubbo/cc.ewell.his.payment.dubbo.PaymentDubboService";
        public GateWayMethod invoke => new Invoke(url);
    }

    public class Invoke : GateWayMethod
    {
        public Invoke(string baseUrl) : base(baseUrl)
        {
        }

        public override string methodName => "invoke";

        public override string paramClass => "cc.ewell.his.payment.request.PaymentRequest";

        public override DubboParamType paramType => DubboParamType.messageheader;

        public override Type requestParamType => typeof(InvokeReq);

        public override Type responseParamType => typeof(object);
    }
}
